﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Backend.JYD.Config.Cache
{
    public class CacheConfig : BaseConfig
    {
        public CacheConfig()
        {
            this.CacheTime = 10;
            this.CacheType = -1;
            this.Name = "CacheConfig";
        }

        /// <summary>
        /// 
        /// </summary>
        public override string SectionName
        {
            get { return ConfigUtilities.ConfigName_CacheConfig; }
        }

        /// <summary>
        /// -1=不使用cache(默认值),1=MemcachedCache;其他=httpCache
        /// </summary>
        public int CacheType { get; set; }
        /// <summary>
        /// 缓存时间：分钟；默认为10分钟
        /// </summary>
        public int CacheTime { get; set; }
        /// <summary>
        /// perfix：缓存key前缀
        /// </summary>
        public string Perfix { get; set; }
    }
}
